var app=getApp();
var asyncRequest=function(url,method,data={}){
  var promise=new Promise(function(resole,reject){
    wx.request({
      url: app.globalData.host+url,
      data:data,
      method:method,
      success:resole,
      fail:reject
    })
  });
}
module.exports = { asyncRequest: asyncRequest}